﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.CUiAPPMainWindowCellFactory
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using C1.WPF.FlexGrid;
using System.Windows;
using System.Windows.Controls;


namespace DnProcessSimulateCommands;

internal class CUiAPPMainWindowCellFactory : CellFactory
{
  private C1FlexGrid _grid;
  private Border _border;
  private CellRange _range;

  public virtual void CreateColumnHeaderContent(C1FlexGrid grid, Border bdr, CellRange rng)
  {
    this._grid = grid;
    this._border = bdr;
    this._range = rng;
    base.CreateColumnHeaderContent(grid, bdr, rng);
    this._border.Padding = new Thickness(4.0, 0.0, 4.0, 0.0);
  }

  public virtual void CreateCellContent(C1FlexGrid grid, Border bdr, CellRange rng)
  {
    base.CreateCellContent(grid, bdr, rng);
    bdr.Child.InvalidateMeasure();
  }
}
